package com.atguigu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * spu销售属性
 * </p>
 *
 * @author 冇有
 * @since 2021-09-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SpuSaleAttr implements Serializable {
    private static final long serialVersionUID=1L;

    /**
     * 编号(业务中无关联)
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品id
     */
    private Long spuId;
    /**
     * 销售属性id
     */
    private Long baseSaleAttrId;
    /**
     * 销售属性名称(冗余)
     */
    private String saleAttrName;
    @TableField(exist = false)//表示该属性不为数据库表字段
    private List<SpuSaleAttrValue> spuSaleAttrValueList;
}
